<!-- head -->
{include file='public/head' /}
<!-- head -->

<!-- left -->
{include file='public/left' /}
<!-- left -->

<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            店铺信息
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 店铺管理</a></li>
            <li><a href="#">店铺列表</a></li>
            <li class="active">查看信息</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <div class="row">
            <div class="col-md-3">

                <!-- Profile Image -->
                <div class="box box-primary">
                    <div class="box-body box-profile">
                        <img class="profile-user-img img-responsive img-circle" src="__STATIC__/AdminLTE/dist/img/user4-128x128.jpg" alt="User profile picture">

                        <h3 class="profile-username text-center">{$storeList.store_name}</h3>

                        <p class="text-muted text-center">{$storeList.store_keeper}</p>

                        <ul class="list-group list-group-unbordered">
                            <li class="list-group-item">
                                <b>负责人电话</b> <a class="pull-right">{$storeList.keeper_phone}</a>
                            </li>
                            <li class="list-group-item">
                                <b>营业执照注册号</b> <a class="pull-right">{$storeList.bus_licence_number}</a>
                            </li>
                            <li class="list-group-item">
                                <b>营业时间</b> <a class="pull-right">{$storeList.busstarttime}-{$storeList.busendtime}</a>
                            </li>
                            <li class="list-group-item">
                                <b>注册时间</b> <a class="pull-right">{$storeList.add_time|date='Y-m-d H:i',###}</a>
                            </li>
                        </ul>

                        <a href="#" class="btn btn-primary btn-block">
                            <b>
                                {if condition="$storeList.bus_licence_type eq 1"} 企业法人
                                {elseif condition="$storeList.bus_licence_type eq 2"/}个体工商户
                                {else /} 散户
                                {/if}
                            </b>
                        </a>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->

                <!-- About Me Box -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">店铺介绍</h3>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <strong><i class="fa fa-book margin-r-5"></i> 店铺说明</strong>

                        <p class="text-muted">
                            {$storeList.introduce}
                        </p>

                        <hr>

                        <strong><i class="fa fa-map-marker margin-r-5"></i> 详细地址</strong>

                        <p class="text-muted">{$storeList.store_address}</p>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
            <div class="col-md-9">
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li><a href="{:url('Store/ShowImgMessage',['id'=>$id])}">相册管理</a></li>
                        <li><a href="{:url('Store/ShowMessage',['id'=>$id])}">项目信息</a></li>
                        <li class="active"><a href="{:url('Store/ShowOrderMessage',['id'=>$id])}">订单信息</a></li>
                        <li><a href="{:url('Store/ShowStaffMessage',['id'=>$id])}">员工信息</a></li>
                        <li><a href="{:url('Store/ShowCustomMessage',['id'=>$id])}">客户信息</a></li>
                        <li><a href="{:url('Store/ShowOnlineMessage',['id'=>$id])}">预约信息</a></li>
                    </ul>
                    <div class="tab-content">
                        <!------订单信息------->
                        <div class="active tab-pane" id="order">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="box box-primary">
                                        <div class="box-header with-border">
                                            <h3 class="box-title" style="font-size: 14px;">共计{$orderList->total()}条记录</h3>
                                            <div class="box-tools pull-right">
                                                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                                                </button>
                                                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                                            </div>
                                        </div>
                                        <div class="box-body">
                                            <div class="table-responsive">
                                                <table class="table table-bordered table-striped">
                                                    <form id='iform' action="{:url('Store/ShowOrderMessage')}" method="get">
                                                        <div class="input-group">
                                                            <input type="text" name="ord_num" value="{$ord_num}" class="form-control" placeholder="请输入订单号...">
                                                            <input type="hidden" name="id" value="{$id}">
                                                            <span class="input-group-btn">
                                                                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                                                                </button>
                                                            </span>
                                                        </div>
                                                    </form>
                                                    <thead>
                                                        <tr>
                                                            <th>编号</th>
                                                            <th>用户名</th>
                                                            <th>订单号</th>
                                                            <th>实付金额</th>
                                                            <th>订单状态</th>
                                                            <th>创建时间</th>
                                                            <th>支付时间</th>
                                                            <th>操作</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        {volist name='orderList' id='admin'}
                                                        <tr>
                                                            <td>{$admin.id}</td>
                                                            <td>
                                                                {if condition="$admin.Custom.real_name neq ''"}{$admin.Custom.real_name}
                                                                {elseif condition="$admin.Custom.custom_name neq ''"/}{$admin.Custom.custom_name}
                                                                {elseif condition="$admin.Custom.custom_phone neq ''"/}{$admin.Custom.custom_phone}
                                                                {/if}
                                                            </td>
                                                            <td>{$admin.ord_num}</td>
                                                            <td>{$admin.pay_money}</td>
                                                            <td>
                                                                {if condition="$admin.status eq 0"}已取消
                                                                {elseif condition="$admin.status eq 1"/}待支付
                                                                {elseif condition="$admin.status eq 2"/}待预约
                                                                {elseif condition="$admin.status eq 3"/}已预约
                                                                {elseif condition="$admin.status eq 4"/}待服务
                                                                {elseif condition="$admin.status eq 5"/}已拒绝
                                                                {elseif condition="$admin.status eq 6"/}员工确认开始服务
                                                                {elseif condition="$admin.status eq 7"/}服务中
                                                                {elseif condition="$admin.status eq 8"/}待评论
                                                                {elseif condition="$admin.status eq 9"/}待回复
                                                                {elseif condition="$admin.status eq 10"/}已结束
                                                                {elseif condition="$admin.status eq 11"/}美容师完成服务
                                                                {/if}
                                                            </td>
                                                            <td>{$admin.add_time|date='Y-m-d H:i',###}</td>
                                                            <td>{$admin.pay_time|date='Y-m-d H:i',###}</td>
                                                            <td style="width: 100px; text-align:right;">
                                                                <button type="button" class="btn btn-sm bg-olive" data-url="{:url('selladmin/Order/OrderDetails',['id'=>$admin.id],'')}" onclick="OrderDetails(this)">查看详情</button>&nbsp;
                                                            </td>
                                                        </tr>
                                                        {/volist}
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                        <div class="box-footer clearfix" style="text-align: center">
                                            {$orderList->render()}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!------订单信息结束------->
                    </div>
                    <!-- /.tab-content -->
                </div>
                <!-- /.nav-tabs-custom -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->

    </section>
    <!-- /.content -->
</div>
<script type="text/javascript">
    function OrderDetails(obj) {
        var url = $(obj).data('url');
        window.location.href = url;
    }
</script>
<!-- foot -->
{include file='public/foot' /}
<!-- foot -->